/**
 *
 */
package com.rexzhaolei.fizzbuzzwhizz;

/**
 * @author rex.zhao
 *
 */
public class Student {
	private int no = -1;
	private Zz zz = null;

	void setGame(Zz zz) {
		this.zz = zz;
	}

	void intoQueue(int no) {
		this.no = no;
	}

	String say() {
		if (zz == null || no <= 0) {
			return String.valueOf(no);
		} else {
			return zz.message(no);
		}
	}
}
